<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/2/20
  Time: 8:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basePath%>"/>
    <script src="statics/js/jquery-3.2.1.min.js"></script>
</head>
<body>
<h4>回复信息列表</h4>
<form action="" method="post">
    <!-- 下次用数组 -->
    添加回复: <div href="addReplay.jsp"></div>
    返回帖子列表: <div href="index.jsp"></div>

    <table border="1" width=80%>

        <tr>
            <th>标题</th>
            <th>内容摘要</th>
            <th>作者</th>
            <th>发布时间</th>
            <th>操作</th>
        </tr>

        <c:forEach var="product" items="${pageObj.list}" varStatus="status">
            <tr
                    <c:if test="${status.index%2==1}">
                        style="background-color:rgb(219,241,212);"</c:if>>
                <td><input type="radio" id="radio" name="radio" value="${product.id}">${product.id}</td>
                <td>${product.content}</td>
                <td>${product.anthor}</td>
                <td>${product.createdate}</td>
            </tr>
        </c:forEach>
    </table>

    <P align="center">
        <a href="javascript:page(1)">首页</a>&nbsp; <a
            href="javascript:page(${pageObj.currPageNo - 1 })">上一页</a> <a
            href="javascript:page(${pageObj.currPageNo})">當前页</a> <a
            href="javascript:page(${pageObj.currPageNo + 1 })">下一页</a> <a
            href="javascript:page(${pageObj.totalPageCount})">末页</a>
        第${pageObj.currPageNo}页/共${pageObj.totalPageCount}页
    </P>
</form>

</body>
</html>
